home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19950528-19950726 / 000267_news@columbia.edu_Mon Jul 3 19:56:09 1995.msg < prev    next >
Internet Message Format  |  2020-01-01  |  2KB

  1. Received: from apakabar.cc.columbia.edu by watsun.cc.columbia.edu with SMTP id AA00175
  2.   (5.65c+CU/IDA-1.4.4/HLK for <kermit.misc@watsun.cc.columbia.edu>); Mon, 3 Jul 1995 15:56:15 -0400
  3. Received: by apakabar.cc.columbia.edu id AA02127
  4.   (5.65c+CU/IDA-1.4.4/HLK for kermit.misc@watsun); Mon, 3 Jul 1995 15:56:13 -0400
  5. Path: news.columbia.edu!watsun.cc.columbia.edu!fdc
  6. From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
  7. Newsgroups: comp.protocols.kermit.misc
  8. Subject: Re: PC Dos kermit - how can i log my calls?
  9. Date: 3 Jul 1995 19:56:09 GMT
  10. Organization: Columbia University
  11. Lines: 36
  12. Message-Id: <3t9i0p$22a@apakabar.cc.columbia.edu>
  13. References: <804795967.28297@imp.demon.co.uk>
  14. Nntp-Posting-Host: watsun.cc.columbia.edu
  15. Apparently-To: kermit.misc@watsun.cc.columbia.edu
  16.  
  17. In article <804795967.28297@imp.demon.co.uk>,
  18. Duncan Frazer <drf@spruce.demon.co.uk> wrote:
  19. : Hi.  Sorry if this a silly question, or if this is the wrong place to
  20. : have posted this ..!  I use 3.14 of kermit for dos as a simple comms
  21. : package.  Id like to be able to log all of my calls that i make using
  22. : it.  All i really need is a log showing each call with a date, start
  23. : time, and duration (or all the information regarding hangups).  If you
  24. : can directly help me, or point me in the direction of document(s)
  25. : which can explain how to do this (useful if you could include site/url
  26. : names, path names, and file names), id me most grateful.
  27. MS-DOS Kermit doesn't do this on its own, and I don't know of anybody
  28. who has set it up to do this.
  29.  
  30. Here is how I would do it, assuming I wanted one big log file.
  31.  
  32. Modify the DIAL macro to "open append" your log file.  If the file did not
  33. exist, this would create it.  At the place where the DIAL macro decides
  34. that dialing was successful, write a record (using WRITE FILE) stating the
  35. phone number, date, and time and any other desired information.  This can
  36. formatted nicely using the built-in string functions (like \frpad(),
  37. flpad(), etc) in version 3.14.
  38.  
  39. In the event that you hang up the call a long time before you exit from
  40. Kermit, you should also define another macro, which you would have to
  41. run explicitly, to record the time of hangup in the log file, and then
  42. close the log file.  For example:
  43.  
  44.   define myhangup -
  45.     hangup, -
  46.     write file Hangup at \v(time) \vdate()\13\10, -
  47.     close write
  48.  
  49. See "Using MS-DOS Kermit" for details about writing macros.
  50.  
  51. - Frank